package top.zhangjianyong.tools.entity.stock;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import top.zhangjianyong.tools.entity.BaseEntity;
import top.zhangjianyong.tools.user.IUser;

/**
 * @author zhangjianyong
 * @since 2025/3/24 下午1:57
 */
@Data
@TableName("stock_user")
public class StockUser extends BaseEntity implements IUser {
    private String name;
    private String username;
    @JSONField(serialize = false)
    private String password;
    private String phone;
    private String email;
    private Integer state; //0-待审核 1-正常
    private Integer admin; //0-普通用户 1-管理员

    @Override
    public boolean admin() {
        return 1 == this.admin;
    }
}
